import Vue from 'vue'

Vue.directive('errimg', {
  inserted(el, binding) {
    // console.log(el)
    // console.log(binding)
    el.onerror = function() {
      this.src = binding.value
    }
  }
})
